package com.kingyun.gpsinspection.purificationservice.facade.service.som;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.Admittance;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.AdmittanceAppr;

import java.util.List;
import java.util.Map;

/**
 * 准入申请接口
 * Created by yangcs on 2017/3/29.
 */
public interface SomAdmittanceService {

    /**
     * 准入申请列表数据
     * @param admittance
     * @return
     */
    JSONObject queryList(Admittance admittance);

    /**
     * 批量删除
     * @param list
     * @param userId
     * @return
     */
    Map<String,Object> delRepItem(List<String> list, String userId);

    /**
     * 新增准入申请
     * @param admittance
     * @return
     */
    int saveAdmittance(Admittance admittance);

    /**
     * 修改准入信息
     * @param admittance
     * @return
     */
    int updateAdmittance(Admittance admittance);

    /**
     * 根据主键查询准入信息
     * @return
     */
    Admittance queryById(String admittanceId);

    /**
     * 查询审批信息
     * @param admittanceId
     * @param status
     * @return
     */
    AdmittanceAppr queryByIdAndStatus(String admittanceId, int status);

    /**
     * 插入审核信息
     * @param admittanceAppr
     * @return
     */
    int insertAdmittanceAppr(AdmittanceAppr admittanceAppr);
}
